package com.example.demo.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.repositorys.myRepository;

@Service
public class myServices {
    private final myRepository myRepository;

    @Autowired
    public myServices(myRepository mRepository) {
        this.myRepository = mRepository;
    }

    public void saveData() {
        this.myRepository.save();
    }
}
